import request from "@/utils/request.js";

export const addTimeslot=(data)=>{
  return request.post('/timeslot/add',data)
}


export const getTimeslotById=(id)=>{
  return request.get('/timeslot/getById',{
    params: { id },
  })
}


export const updateTimeslot=(data)=>{
  return request.post('/timeslot/update',data)
}

export const checkTime=(data)=>{
  return request.post('/timeslot/checkTime',data)
}
